﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="read.aspx.cs" Inherits="FutureMeWeb.read" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxtoolkit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
     <title>公开邮件</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="style.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="js/cufon-yui.js"></script>
    <script type="text/javascript" src="js/arial.js"></script>
    <script type="text/javascript" src="js/cuf_run.js"></script>
    <style type="text/css">
       .modalBackground
         {
             position: absolute;
             z-index: 100;
             top: 0px;
             left: 0px;
             background-color: black;
             filter: alpha(opacity=50);
             -moz-opacity: 0.6;
             opacity: 0.8;/*透明度*/
         };

        .modalPopup 
        {
            background-color:White;
            opacity:0;
        }
   </style>
        
</head>

<body>
    <form id="form1" runat="server">
    <ajaxtoolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </ajaxtoolkit:ToolkitScriptManager>     
    <div>
         <div class="main">

              <div class="header">
                <div class="header_resize">
                  <div class="logo"><h1><a href="index.aspx"><span>Future</span> Me <small>A dream for the future</small></a></h1></div>
                  <div class="menu_nav">
                    <ul>
                      <li><a href="index.aspx">首页</a></li>
                      <li><a href="write.aspx">写邮件</a></li>
                      <li class="active"><a href="read.aspx">公开邮件</a></li>
                      <li><a href="about.aspx">关于我们</a></li>
                      <li><a href="contact.aspx">联系我们</a></li>
		              <li><a href="feedback.aspx">反馈建议</a></li>
		              <li><a href="support.aspx">支持我们</a> </li> 
                    </ul>
                  </div>
                  <div id="" class="">
			     <table align="right" border="0px" width = "400px" bordercolor ="D792DB" cellspacing="0gpx" cellpadding="10px" >
			    <tr>
			    <td align="right">
                    <font size="4" color="white">
           
                        <asp:LinkButton ID="AccountBtn" runat="server" style="TEXT-DECORATION: none" PostBackUrl="~/modify_information.aspx">我的账户</asp:LinkButton>&nbsp;| 
                            <asp:LinkButton ID="LoginBtn" runat="server" style="TEXT-DECORATION: none" PostBackUrl="~/login.aspx">登陆</asp:LinkButton>&nbsp;
                            <asp:LinkButton ID="LogoffBtn" runat="server" 
                        style="TEXT-DECORATION: none" PostBackUrl="~/login.aspx" 
                        onclick="LogoffBtn_Click">注销</asp:LinkButton>丨
                            <asp:LinkButton ID="RegisterBtn" runat="server" style="TEXT-DECORATION: none" PostBackUrl="~/register.aspx">注册</asp:LinkButton>&nbsp; 
                    
                    </font>
			    </td>
			    </tr>
			    </table>
		    </div>
      </div>
                  <div class="clr"></div>
                </div>
              </div>

              <div class="hbg">&nbsp;</div>

              <div class="content">
                <div class="content_resize">
                  <div class="mainbar">
                    <div class="article">
                        <asp:Label ID="Label2" runat="server" Text="Label"  Font-Size="XX-Large"  Font-Names="隶书" >公开邮件------为你的梦想插上翅膀</asp:Label><div class="clr"></div><%# Eval("fsd") %>
                   

                    <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="rptMailRead">
                       
                        
                                    
                            <ItemTemplate>
                             
                                   <table align="left" border="0px" width = "600px" cellspacing="0px" cellpadding="5px" >
			                                <tr>
			                                    <td  class="article4" >
                                                <hr />
                                                    <asp:HyperLink ID="HyperLink1" runat="server"  font-underline="false"  Font-Size="X-Large"  Text='<%# Eval("mailTitle") %>' Font-Names="黑体"></asp:HyperLink>
                                                    &nbsp;&nbsp;
			                                    </td>
                                             </tr>
                                             <tr>
                                                 <td>
                                                     <asp:HyperLink ID="contentLink" runat="server"  Font-Size="Medium" font-underline="false" ForeColor="BlueViolet" Font-Names="黑体" NavigateUrl="#" Text='<%# Eval("mailContent").ToString().Length>=30?Eval("mailContent").ToString().Substring(0,30)+"...":Eval("mailContent").ToString()%>'>
                                                     </asp:HyperLink>
                                                 </td>
                                             
                                             </tr>
                                             <tr>
                                                <td class="article5">
                                                    Sent&nbsp;&nbsp;From&nbsp;&nbsp;<asp:Label ID="Label7" runat="server" Text='<%# Eval("mailCreateDate")%>' Font-Bold="true"></asp:Label> 
                                                    Into&nbsp;&nbsp;The&nbsp;&nbsp;Future,&nbsp;&nbsp;To&nbsp;&nbsp;<asp:Label ID="Label9" runat="server" Text='<%# Eval("mailSendDate")%>' Font-Bold=true></asp:Label> 
                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="LblState" runat="server"></asp:Label>

                                                   <asp:Label ID="lblSend" runat="server" Text='<%#(Eval("mailState")).ToString()=="0"?"未发送":"已发送"%>'></asp:Label>
                                                <hr />
                                                </td>
			                                </tr>
			                        </table>
                                    <div>
                                        <asp:Panel ID="pnlViewCustomer" GroupingText="公开邮件" runat="server"  CssClass= "modalPopup"> 
                                        <div style="margin:10px">
                                        <table align="left" border="0px" width = "600px" cellspacing="0px" cellpadding="0px" >
                                           <tr>
                                              <td>
                                                  <asp:Label ID="Label4"  Width="500px" runat="server" Text='<%# "CreateDate: "+Eval("mailCreateDate")%>' ForeColor="white" Font-Bold="true"  Font-Size=Medium></asp:Label>
                                              <td>
                                              <td align="right" width="100px">
                                                  <asp:HyperLink ID="closeLink" runat="server" NavigateUrl="#">[X]Close</asp:HyperLink>
                                              </td>
                                           </tr>
                                           <tr>
                                              <td>
                                                  <asp:Label ID="Label5"  Width="500px" runat="server" Text='<%# "FutureReceive："+Eval("mailCreateDate")%>' ForeColor="white" Font-Bold="true"  Font-Size=Medium></asp:Label>
                                              <td>
                                              <td align="right" width="100px"  rowspan = "6">
                                                  <asp:Image ID="Image1" runat="server" ImageUrl="~/images/ads.jpg"/>
                                              </td>
                                           </tr>
                                           <tr>
                                               <td>
                                                  <asp:Label ID="Label1" runat="server"  Width="500px" Text='<%# Eval("mailTitle")+"："%>' Font-Size="X-Large" ForeColor="AliceBlue"></asp:Label>
                                              </td>
                                           </tr>
                                           <tr>
                                              <td height="100">
                                              <asp:Label ID="Label3" runat="server" style="word-break:break-all"  Width="500px" Text='<%# "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+Eval("mailContent")%>' Font-Size="X-Large" ForeColor="HotTrack"></asp:Label>
                                              </td>
                                           </tr>
                                           <tr>
                                              <td>
                                              <asp:Label ID="Label8" runat="server" style="word-break:break-all"  Width="500px" Text='<%# (Eval("mailIsPublic")).ToString()=="1"?"SendState：Already Sent":"SendState：Not Send Yet"%>' Font-Size="Medium" ForeColor="white" Font-Bold=true></asp:Label>
                                              </td>
                                           </tr>
                                           <tr>
                                              <td>
                                              <asp:Label ID="Label6" runat="server" style="word-break:break-all"  Width="500px" Text='<%# (Eval("mailState")).ToString()=="1"?"MailType：Public":"MailType: Private"%>' Font-Size="Medium" ForeColor="white" Font-Bold=true></asp:Label>
                                              </td>
                                           </tr>
                                        </table>
                                         </div>
                                         </asp:Panel> 
                                        
                                         <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender2" runat="server" 
                                                    TargetControlID="contentLink" Drag ="true" 
                                                    PopupControlID="pnlViewCustomer"
                                                    BackgroundCssClass="modalBackground"
                                                    DropShadow="True"
                                                    OkControlID="closeLink">
                                        </ajaxToolkit:ModalPopupExtender>
                                        <ajaxToolkit:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server"   TargetControlID="pnlViewCustomer" Radius="6" Corners="All" BorderColor="Black">
                                        </ajaxToolkit:RoundedCornersExtender>
                                  </div>
                            </ItemTemplate>
                        </asp:Repeater>



                        <div class="article">
                            共<asp:Label ID="lbl_counts" runat="server" Font-Size="Medium"></asp:Label>条记录&nbsp;&nbsp;&nbsp;
                            共<asp:Label ID="lbl_pages" runat="server" Font-Size="Medium"></asp:Label>页&nbsp;&nbsp;&nbsp;
                            当前第<asp:Label ID="lbl_current" runat="server" Text="1" Font-Size="Medium"></asp:Label>页&nbsp;&nbsp;&nbsp;
                            <asp:LinkButton ID="link_first" runat="server" OnClick="LinkFirst_Click">第一页</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                            <asp:LinkButton ID="link_up" runat="server" OnClick="LinkUp_Click">上一页</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                            <asp:LinkButton ID="link_down" runat="server" OnClick="LinkDown_Click">下一页</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                            <asp:LinkButton ID="link_last" runat="server" OnClick="LinkLast_Click">最后一页</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                            转到第<asp:DropDownList ID="DropDownList1" runat="server"  OnSelectedIndexChanged="dropdownlist1_DropDownListChanged"  AutoPostBack="True"></asp:DropDownList>页
                        </div>

		            
	      
       
                    </div>
                  </div>
                  <div class="sidebar">
                    <div class="gadget">
                      <h2 class="star"><span>Future Me</span></h2>
                      <ul class="sb_menu">
                          <li><a href="index.aspx">首页</a></li>
			              <li><a href="write.aspx">写邮件</a></li>
			              <li><a href="read.aspx">公开邮件</a></li>
			              <li><a href="about.aspx">关于我们</a></li>
			              <li><a href="contact.aspx">联系我们</a></li>
			              <li><a href="feedback.aspx">反馈建议</a></li>
		                  <li><a href="support.aspx">支持我们</a></li>
                      </ul>
                    </div>
                    <div class="gadget">
                      <h2 class="star"><b>Links</b></h2><div class="clr"></div>
                      <ul class="ex_menu">
                        <li><a href="http://www.njtu.edu.cn/" title="北交大">北京交通大学</a><br />北京交通大学官网</li>
                        <li><a href="http://zhixing.bjtu.edu.cn/forum.php" title="交大知行论坛">知行论坛</a><br />北京交通大学知行论坛</li>
                        <li><a href="http://cgbt.cn/" title="晨光BT">晨光BT</a><br />晨光BT资源分享网站</li>
                        <li><a href="www.google.com.hk/" title="谷歌">Google</a><br />谷歌</li>
                        <li><a href="http://www.yyets.com/" title="人人影视">YYets</a><br />人人影视</li>
                        <li><a href="www.baidu.com" title="baidu">百度</a><br />百度搜索</li>
                      </ul>
                    </div>
                  </div>
                  <div class="clr"></div>
                </div>
              </div>
              <div class="fbg">
                <div class="fbg_resize">
                  <div class="col c1">
                    <h2><span>Image Gallery</span></h2>
                    <a href="#"><img src="images/pix1.jpg" width="56" height="56" alt="pix" /></a>
                    <a href="#"><img src="images/pix2.jpg" width="56" height="56" alt="pix" /></a>
                    <a href="#"><img src="images/pix3.jpg" width="56" height="56" alt="pix" /></a>
                    <a href="#"><img src="images/pix4.jpg" width="56" height="56" alt="pix" /></a>
                    <a href="#"><img src="images/pix5.jpg" width="56" height="56" alt="pix" /></a>
                    <a href="#"><img src="images/pix6.jpg" width="56" height="56" alt="pix" /></a>
                  </div>
                  <div class="col c2">
                    <h2>E-mail</h2>
                    <p>电子邮件（electronic mail，简称E-mail，标志：@，也被大家昵称为“伊妹儿”），又称电子信箱、电子邮政，它是—种用电子手段提供信息交换的通信方式，是Internet应用最广的服务，通过网络的电子邮件系统，用户可以用非常低廉的价格（不管发送到哪里，都只需负担电话费和网费即可），以非常快速的方式（几秒钟之内可以发送到世界上任何你指定的目的地），与世界上任何一个角落的网络用户联系，这些电子邮件可以是文字、图像、声音等各种方式。同时，用户可以得到大量免费的新闻、专题邮件，并实现轻松的信息搜索。.</p>
                  </div>
                  <div class="col c3">
                    <h2><span>Donate</span></h2>
                    <img src="images/white.jpg" width="56" height="56" alt="pix" />
                    <p>如果你爱我们的网站，如果你愿意对我们的网站献出你的爱心，请点击下面按钮，对我们进行捐助。<br>谢谢你们，有你们，才有FutureMe的明天！！
		            <a href="#">Learn more...</a></p>
                  </div>
                  <div class="clr"></div>
                </div>
              </div>
              <div class="footer">
                <div class="footer_resize">
                  <p class="lf">&copy; Copyright <a href="#">FutureMe</a>. <a href="#" title="奥林匹克小组" target="_blank">奥林匹克小组</a></p>
                  <ul class="fmenu">
                      <li><a href="index.aspx">首页</a></li>
                      <li><a href="write.aspx">写邮件</a></li>
                      <li  class="active"><a href="read.aspx">公开邮件</a></li>
                      <li><a href="about.aspx">关于我们</a></li>
                      <li><a href="contact.aspx">联系我们</a></li>
		              <li><a href="feedback.aspx">反馈建议</a></li>
		              <li><a href="support.aspx">支持我们</a></li>
                  </ul>
                  <div class="clr"></div>
                </div>
              </div>
            </div>
    </div>
    </form>
</body>
</html>
